package com.yunbao.core.springmvc.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * Demo class
 *
 * @author 孔邹祥
 * @date 2019年1月17日
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class GlobalException extends RuntimeException {


    private Integer code = 500;

    private String message = super.getMessage();


}
